<div id="header">
    <div id="logo">
        <a href="/">
            <span class="hidden">
                <%= title%>
            </span>
            <img src="http://localhost:3000/images/logo.png" alt="" />
        </a>
    </div>
    <!--logo-->
    <ul id="nav">
    
    
        
    <%if(user){%>
        <%if(user.role == 1){%>
        <li><a href="/">首页</a></li>
        <li><a href="/about">关于</a></li>
        <li>
        	<a href="/newsindex">新闻</a>	
        	
            <ul>
                <li><a href="/admin/movie">新闻录入</a>
                </li>
                <li><a href="/admin/list">新闻列表</a></li>

            </ul>
        </li>
        <li>
        	<a href="/travelIndex">游记</a>
            
            <ul>
                <li><a href="/admin/travel">游记录入页 </a></li>
                <li><a href="/admin/travelList">游记列表</a></li>
            </ul>
        </li>
        <li>
        	<a href="/pictureindex">图片</a>
            
            <ul>
                <li><a href="/admin/picture">图片后台录入页 </a></li>
                <li><a href="/admin/picturelist">图片列表</a></li>
            </ul>
        </li>
        <li>
        	<a href="/home">购物商城</a>
            
            <ul>
                <li><a href="/addcommodity">添加商品 </a></li>
                <li><a href="/commoditylist">商品列表</a></li>
                <li><a href="/orderlist">订单查询</a></li>
            </ul>
        </li>
        <li>
        	<a href="/admin/userlist">用户管理</a>
            
            
        </li>
        <%}else{%>
        <li><a href="/">首页</a></li>
        <li><a href="/about">关于</a></li>
        <li><a href="/newsindex">新闻</a></li>
        <li><a href="/travelIndex">游记</a></li>
        <li><a href="/pictureindex">图片</a></li>
        <li><a href="/home">购物商城</a></li>
        <%}%>
    <%}else{%>
    	<li><a href="/">首页</a></li>
        <li><a href="/about">关于</a></li>
        <li><a href="/newsindex">新闻</a></li>
        <li><a href="/travelIndex">游记</a></li>
        <li><a href="/pictureindex">图片</a></li>
        <li><a href="/home">购物商城</a></li>
    <%}%>
    </ul>
    <div id="search">
        
				<div>
					<% if( user ) {%>
					<p>
						<span><a href="/userdetail">欢迎您，<%= user.name %></a></span>
						<span>&nbsp;|&nbsp;</span> 
						<a href="/logout" class="navbar-link">退出</a>
					</p>
					<% }else{ %>
					<p>
						<a href="/register" class="navbar-link">注册</a>
				        <span>&nbsp;|&nbsp;</span> 
				        <a href="/login" class="navbar-link">登录</a> 
					</p>
				    <%}%>
				</div>
				
				 
    </div>

    <div class="clear">
    </div>
    <table id="tagline-tb">
        	<tbody><tr>
            	<td>
        			<div id="tagline"><%= title%><div id="tagline-right"></div></div><!--tagline-->
                </td>
            </tr>        
        </tbody>
    </table>
</div>
<!--header-->


<!-- <div id="singupModal" class="modal fade">
	<div class="modal-dialog">
		<div class="modal-content">
			<form method="POST" action="/user/signup">
				<div class="modal-header">注册</div> 
		        <div class="modal-body">
		          <div class="form-group">
		          	<label for="signupName">用户名</label>
		            <input type="text" name="name" id="signupName" class="form-control">
		          </div>
		            
		          <div class="form-group">
		          	<label for="signupPassword">密码</label>
		            <input type="password" id="signupPassword" name="password" class="form-control">
		          </div>
		          <div class="form-group">
		          	<label for="signupEmail">邮箱</label>
		            <input type="text" id="signupemail" name="email" class="form-control">
		          </div>
		          <div class="form-group">
		          	<label for="signupTel">手机号</label>
		            <input type="text" id="signupTel" name="tel" class="form-control">
		          </div>
		        </div>    
		        <div class="modal-footer">
		          <button type="button" data-dismiss="modal" class="btn btn-default">关闭</button>
		          <button class="btn btn-success" type="submit">提交</button>
		        </div>
			</form>
		        
		</div>
	      
	</div>
</div>
<div id="singinModal" class="modal fade">
	<div class="modal-dialog">
		<div class="modal-content">
			<form method="POST" action="/user/signin">
				<div class="modal-header">登录</div> 
		        <div class="modal-body">
		          <div class="form-group">
		          	<label for="signinName">用户名</label>
		            <input type="text" name="name" id="signinName" class="form-control">
		          </div>
		            
		          <div class="form-group">
		          	<label for="signinPassword">密码</label>
		            <input type="text" id="signinPassword" name="password" class="form-control">
		          </div>
		        </div>    
		        <div class="modal-footer">
		          <button type="button" data-dismiss="modal" class="btn btn-default">关闭</button>
		          <button class="btn btn-success" type="submit">提交</button>
		        </div>
			</form>
		        
		</div>
	      
	</div>
</div>
        -->
